#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "StdUDP.h"
int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        printf("invalid numbers!\n");
        return -1;
    }
    UdpS* s = InitUdpServer(argv[1], atoi(argv[2]));
    while(1)
    {
        char temp[100] = {0};
        UdpServerRecv(s, temp, 100);
        printf("rev, from : %s\n");
    }
    ClearUdpServer(s);
    
    
    
    return 0;
}